Single, unified toArray() method