Convert generator to list