Put the raw pasta in a suitable ovenproof baking dish. Spread the diced ham on top. Mix the liquids with the spices and season to taste. Stir in the cornstarch and spread over the pasta. The noodles should be just covered.
Spread the grated cheese over it and bake in the preheated oven at 180-200 ° C for about 30 minutes.