Allow public use of toArray