e.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;X&gt;&nbsp;type)</span></div>
<div class="block">Perform a typecast upon the expression, returning a new
 expression object.
 Unlike <a href="#cast(java.lang.Class)"><code>cast(Class)</code></a>, this method does not cause
 type conversion: the runtime type is not changed.
 <p><em>Warning: may result in a runtime failure.</em></div>
<dl class="notes">
<dt>Parameters:</d