Heat milk in a heavy bottomed saucepan over a low-medium heat. Stir it regularly with a silicon spatula to make sure the bottom doesn't burn. Add about half the sugar.
Meanwhile, whisk the remaining sugar and cornstarch together in a medium sized heatproof bowl. Once combined, whisk in the egg yolks and whole egg.
Once the milk comes to a simmer, take it off the heat and transfer it to a large heatproof pouring jug.
Place the bowl with the cornstarch egg mixture on a tea towel to stop it moving. Whisk constantly as you slowly pour the hot milk into the egg mixture. Tempering it this way brings the eggs up to a high heat without overcooking them.
Once you have added all of your milk to the cornstarch egg mixture, pour it back into the saucepan. Turn the heat to low and cook the mixture while stirring very frequently with a silicone spatula to prevent any egg from overcooking.
Cook for anywhere from 3-10 minutes or until the pastry creamy is visibly thickened and can easily coat the back of a spoon.
Transfer the pastry cream to a heatproof bowl and cover it with clingfilm flush to the pastry cream. This will prevent it from developing a skin.
Place the pastry cream in the fridge to fully cool and set - at least 2-3 hours but ideally overnight. It will thicken in this time, making it much easier to use.
If your pastry cream has lumps and bumps, pass it through a sieve before use.