Pastry cream (aka crème pâtissière if you want to get fancy), is a hybrid between vanilla custard and vanilla pudding. The base is made like a standard custard recipe using eggs, then thickened further with cornstarch. The reason is that pastry cream needs to have a bit more body so it can be used in éclairs or as the filling for cakes, like Boston Cream Pie.