cast<D2> method

Expression<D2> cast<D2>()

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>() => _CastInSqlExpression<D, D2>(this);