title: Convert from TypeReference<E> to Class<E> without casting (Java)
body: <p>I want to go from a <code>TypeReference&lt;E&gt;</code> object to a <code>Class&lt;E&gt;</code> object in Java, <em>without</em> using casting. I require the usage of <code>TypeReference</code> because of the way my code uses <strong>Jackson</strong> and I need <code>Class</code> object because I want to use it to infer a type into one of my other Generic Classes in my app.</p>
  
  <p>I know that <code>TypeReference.getType()</code> will return a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html" rel="noreferrer">java.lang.reflect.Type</a> object. Basically, if I can find out a way to use code without casting to get from <code>Type</code> to <code>Class</code>, then I have figured out my problem.</p>
  
  <p><strong>Javadoc References:</strong></p>
  
  <ul>
  <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html" rel="noreferrer">http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html</a></li>
  <li><a href="http://jackson.codehaus.org/1.9.4/javadoc/org/codehaus/jackson/type/TypeReference.html" rel="noreferrer">http://jackson.codehaus.org/1.9.4/javadoc/org/codehaus/jackson/type/TypeReference.html</a></li>
  </ul>