sistence.criteria">Expression</a>&lt;X&gt;</span>&nbsp;<span class="element-name">cast</span><wbr><span class="parameters">(<a href="https://docs.oracle.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">Cast this expression to the specified type, returning a
 new expression object.
 Unlike <a href="#as(java.lang.Class)"><code>as(Class)</code></a>, this method <em>does</em>