quick implement toArray()