cast method
- DType dtype, {
- bool strict = true,
Implementation
Expr cast(DType dtype, {bool strict = true}) {
if (!dtype.capabilities.cast) {
throw ArgumentError.value(dtype, 'dtype', 'does not support casts');
}
return _inputCommand('exprCast', {
'dtype': dtype.toJson(),
'strict': strict,
});
}