Change Object to array