@SuppressWarnings("unchecked")
    public <A extends Number & Comparable<? super A>> NumberExpression<A> castToNum(Class<A> type) {
        if (type.equals(getType())) {
            return (NumberExpression<A>) this;
        } else {
            return Expressions.numberOperation(type, Ops.NUMCAST, mixin, ConstantImpl.create(type));
        }
    }
Create a {@code cast(this as byte)} expression

<p>Get the byte expression of this numeric expression</p>

@return this.byteValue()
@see java.lang.Number#byteValue()
querydsl-core/src/main/java/com/querydsl/core/types/dsl/NumberExpression.java