toArray should return an array.