When pastry cream cools, it can form a skin on the surface. Pressing cling film over the surface stops this from happening.