public static Expression<?> toExpression(Object o) {
        if (o instanceof Expression) {
            return (Expression<?>) o;
        } else {
            return ConstantImpl.create(o);
        }
    }
Converts the given object to an Expression

<p>Casts expressions and wraps everything else into co</p>

@param o object to convert
@return converted argument
querydsl-core/src/main/java/com/querydsl/core/types/ExpressionUtils.java