The present invention relates to a method of feeding piglets comprising providing to the piglets a solid nutritional composition comprising casein during at least a part of the pre-weaning phase. The invention further relates to a piglet pen comprising a space to which piglets have access and a space for holding a sow, wherein the space to which piglets have access comprises a nutritional composition comprising casein. Further, the invention relates to a specific casein composition, suitable for use in a method according to the invention.