pub fn as_union_array(array: &dyn Array) -> Result<&UnionArray>