dartCast<T2 extends Object> method

Expression<T2> dartCast<T2 extends Object>({
  1. SqlType<T2>? 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<T2> dartCast<T2 extends Object>({SqlType<T2>? customType}) {
  return _DartCastExpression<T, T2>(this, customType);
}