Combine egg yolks and sugar in a bowl and mix.
Sift in flour and corn starch and add to the mixture.
Warm the milk, then gradually add to the mixture, whisking well as you go.
Transfer to a saucepan and cook over medium heat, stirring constantly.
Add butter and vanilla extract, mix in, and let cool.