Convert java.lang.reflect.Type to Class<T> clazz
<p>How can I convert <code>java.lang.reflect.Type</code> to <code>Class&lt;T&gt; clazz</code>?</p>

<p>If I have one method as next which has an argument of <code>Class&lt;T&gt;</code>:</p>

<pre><code>public void oneMethod(Class&lt;T&gt; clazz) {     
    //Impl
}
</code></pre>

<p>Then another method which has an argument of <code>java.lang.reflect.Type</code> and it calls <code>oneMethod(Class&lt;T&gt; clazz)</code> and for it I need to convert <code>java.lang.reflect.Type type</code>  to <code>Class&lt;T&gt;</code>:</p>

<pre><code>public void someMehtod(java.lang.reflect.Type type) {
   // I want to pass type arg to other method converted in Class&lt;T&gt;
   otherMethod(¿How to convert java.lang.reflect.Type to Class&lt;T&gt;?);
}
</code></pre>

<p>Is it possible?</p>