This is equivalent to `-toArray`.