cast method

Expr cast(
  1. DType dtype, {
  2. 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,
  });
}