If there's no time to prepare the cake or the Sim hates cooking, you can always use the age-up cheat. Open the cheat console by pressing control + shift + c. Then type in 'testingcheats true' and then follow it with 'cas. fulleditmode'.