there is no `toArray` method, `getArrayCopy` is the only way I know to get the inner array of an ArrayObject (except from using `iterator_to_array`)