pub fn cast(
    array: &dyn Array,
    to_type: &DataType
) -> Result<ArrayRef, ArrowError>