Remake toArray to simple for compatibility