You need a cheese maker, and then you put milk into it.
Leave the milk to process and the cheese is ready to collect afterwards. It's one of the more profitable things you can do with a dairy animal's output, since processed goods sell for considerably more than raw milk.