Removed toArray() method