pub fn cast(child: ExprRef, target: DType) -> ExprRef
Expand description
Creates an expression that casts values to a target data type.
Converts the input expression’s values to the specified target type.
let expr = cast(root(), DType::Primitive(PType::I64, Nullability::NonNullable));