Added toArray()