The Cook Hat is a hat accessory you can purchase at Miss Petula's Paper Pets in Viva Piñata: Trouble in Paradise.
This accessory will make any Lemmonings that are wearing it automatically consume Sour Candy in the garden and turn it into normal Candy.