eggs are the main thickener in most custard and the yolks make them smooth and rich. both egg yolks and whites contain proteins, which change from liquid to solid, called coagulation, when cooked or baked. this means that the liquid egg becomes firmer.