Fast Object Database for Java - with JPA/JDO support

as(type) - JPA Expression's method

Perform a typecast upon the expression, returning a new expression object. This method does not cause type conversion: the runtime type is not changed. Warning: may result in a runtime failure.
type - intended type of the expression
new expression of the given type
JPA 2.0