asBool method
Cast as Expr<bool?> using CAST(NULL AS BOOLEAN)
.
This method is rarely necessary, as you can generally pass toExpr(null)
to any method expecting an Expr<bool?>
. But in some complex scenarios
this can alleviate type inference issues.
Implementation
Expr<bool?> asBool() => CastExpression._(this, ColumnType.boolean);