change from to type array