public <A extends Number & Comparable<? super A>> NumberExpression<A> castToNum(Class<A> type) {
        return Expressions.numberOperation(type, Ops.NUMCAST, mixin, ConstantImpl.create(type));
    }
Create a cast expression to the given numeric type

@param <A> numeric type
@param type numeric type
@return cast expression
querydsl-core/src/main/java/com/querydsl/core/types/dsl/LiteralExpression.java