Added a toArr() method