-
For the silkiest pastry cream, set up a medium heat-proof bowl over an ice water bath. (Once the pastry cream comes to a full boil, you'll strain the hot pastry cream into the bowl to stop the cooking immediately and prevent it from curdling and separating.) Set the water bath aside.
-
In a medium-sized saucepan, stir together 2 1/2 cups (568g) of the milk, the sugar, salt, and the vanilla bean. (If you're using vanilla extract or Vanilla Bean Crush, add it at the end.) Bring to a simmer over medium heat, stirring to dissolve the sugar.
-
Meanwhile, whisk the cornstarch, flour, and egg yolks with the remaining 1/2 cup (113g) milk.
-
Whisk some of the hot milk mixture with the egg yolks to temper them. This keeps the yolks from turning to scrambled eggs when you add them to the simmering milk.
-
Pour the egg/milk mixture back into the remaining simmering milk. Doing this through a strainer will help prevent lumps later. Bring to a boil, stirring constantly with a whisk, until the mixture thickens and boils in the center of the saucepan. The mixture should measure 200°F on a digital thermometer.
-
Remove from the heat and strain through a fine strainer into a bowl set in an ice bath. Stir in the butter and vanilla extract. If you're going to flavor the pastry cream with chocolate or some other flavor, this is the time to do it (see variations below).
-
Rub a piece of butter over the surface of the cream, top with a piece of plastic wrap (make sure it touches the top of the pastry cream so it doesn't develop a skin), then refrigerate until cool.
-
Use the chilled pastry cream as is for a cream pie or filling for éclairs. (Pastry cream that has been chilled may have to be transferred to a bowl and re-whipped to return it to a smooth consistency.) For a softer filling, fold in the whipped cream just before using. For a stabilized, sliceable pastry cream, see "tips" below for details on incorporating gelatin.
-
Pastry cream will keep, covered in the refrigerator, for up to 5 days. After that it may start to weep.