pub fn as_generic_binary_array<T: OffsetSizeTrait>(
    array: &dyn Array
) -> Result<&GenericBinaryArray<T>>