dartCast<D2 extends Object> method

Expression<D2> dartCast<D2 extends Object>(
  1. {CustomSqlType<D2>? customType}
)

Casts this expression to an expression of D.

Calling dartCast will not affect the generated sql. In particular, it will NOT generate a CAST expression in sql. To generate a CAST in sql, use cast.

This method is used internally by drift.

Implementation

Expression<D2> dartCast<D2 extends Object>({CustomSqlType<D2>? customType}) {
  return _DartCastExpression<D, D2>(this, customType);
}