There is nothing particular about cheese, but if you go to bed with a full stomach, you may spend more of the night in REM (rapid eye movement) sleep, which is when your most vivid dreams occur.
Whether those dreams are good or bad will depend on your underlying anxiety level and whether you get tangled up in the blankets.
Read more:
Subscribe to BBC Focus magazine for fascinating new Q&As every month and follow @sciencefocusQA on Twitter for your daily dose of fun science facts.