Add #to and #from methods to Array