Change data type of array retrieved from list.