Place milk and cinnamon stick in a small pot until it comes to a boil.
In another pot, combine egg yolks and sugar over medium heat. Gradually add vanilla. Incorporate the cornstarch and mix vigorously. Add hot milk and continue mixing. When it comes to a boil, remove pot from heat and continue beating until it cools.