Re-Implement toArray