Function vortex_array::compute::try_cast

source ยท
pub fn try_cast(
    array: impl AsRef<ArrayData>,
    dtype: &DType,
) -> VortexResult<ArrayData>
Expand description

Attempt to cast an array to a desired DType.

Some array support the ability to narrow or upcast.