Added toArray() implementation