list to array