cast<D2 extends Object> method
Generates a CAST(expression AS TYPE)
expression.
Note that this does not do a meaningful conversion for drift-only types
like bool
or DateTime
. Both would simply generate a CAST AS INT
expression.
Implementation
Expression<D2> cast<D2 extends Object>() {
return _CastInSqlExpression<D, D2>(this);
}