title: Casting to Unknown Type When Only Given Class Name as a String of That Type
body: <p>I currently posses a List of Objects(Using Java 1.3), and let's say that I wanted to cast one of the Objects returned from list.get(i) to a type of which I only know the name of the Class as a String. Essentially, how do I 
  Object o = (classname)list.get(i); where className is a String variable of a className.</p>
  
  <p>I thought that I could use ( Class.forName(className) )list.get(i), but I received a syntax error claiming that I forgot a semicolon.</p>
  
  <p>Unfortunately, since I am using Java 1.3, I do not have access to the Class.cast(Object) method.</p>
  
  <p>What is the name of the class used when casting to another type in Java 1.3? Is there some method that can give me the correct type I need with a String parameter of the class name?</p>