pub fn cast_to_variant(input: &dyn Array) -> Result<VariantArray, ArrowError>
Expand description
Convert an array to a VariantArray
with strict mode enabled (returns errors on conversion
failures).
This function provides backward compatibility. For non-strict behavior,
use cast_to_variant_with_options
with CastOptions { strict: false }
.