pub fn as_boolean_array(array: &dyn Array) -> Result<&BooleanArray>