polars_core::export::cast

Function cast_default

Source
pub fn cast_default(
    array: &(dyn Array + 'static),
    to_type: &ArrowDataType,
) -> Result<Box<dyn Array>, PolarsError>