Expr.castTo

Expr castTo(DataType target, bool strict = true) @safe

Casts the output to a target dtype (the eager castTo: strict by default; out-of-range and unsupported casts throw at evaluation).

Parameters

targetthe target dtype
strictwhether out-of-range values throw instead of truncating

Returns

the cast expression.