Preheat your oven to 160°C (320°F).
In a mixing bowl, whisk together the egg yolks and sugar until the mixture is smooth.
Gradually add the cornstarch to the egg mixture, stirring until well combined.
Slowly pour in the milk while continuously whisking to ensure a smooth consistency.
Transfer the mixture into a baking dish or individual ramekins.
Place the baking dish in the oven and bake for about 30-40 minutes, or until the custard is set and lightly golden on top.
Remove from the oven and let it cool before serving.
