adding a toArray method to the URL interface