Before you start cooking: Grease the baking dish with ¾ Tablespoon solid fat, and sprinkle it with 2 Tablespoon breadcrumbs. Gently tap the dish on the work surface to remove any excess breadcrumbs.
Peel and mince 2 cloves garlic.
Cook 16 ounces pasta in salted water until tender, then drain. Follow the manufacturer's instructions on the packaging.
While the pasta is cooking, dice 9 ounces cooked ham into ⅓-inch (0,7 cm) pieces. Heat a skillet over medium-high heat and let ½ Tablespoon unsalted butter melt in it.
Add the ham cubes and cook, stirring constantly, until their edges begin to brown. This will take about three to five minutes.
Pour ¾ cup milk and ½ cup heavy cream into a large enough container. Add 4 eggs and beat them with a hand whisk until a creamy, yellowish mixture forms.
In a large bowl, combine the hot, drained pasta with the fried ham. Season with 1 and ½ teaspoons salt and ¾ teaspoon ground black pepper, and add the minced garlic. Mix well. Finally, pour in the milk and egg mixture. Stir again thoroughly.
Carefully transfer the mixture into the prepared baking dish, smoothing the surface evenly.
Preheat the oven to
325 °F, using the top and bottom heat, not the fan-forced circulation. Place the pan on the middle rack and bake for 30 minutes. Then turn off the oven without opening it, and leave the casserole sit in the oven for another 15 minutes to finish cooking.