The pastry cream needs to be cooked until it coats the back of a wooden spoon. It is better to cook it a bit longer than earlier. That's because a runny pastry cream will not set but a firm pastry cream can be whipped to consistency.