Cook the pasta in boiling salted water according to the instructions on the packet. Then pour into a sieve, quench and drain well. Clean and wash the broccoli, cut off the florets and place in boiling salted water.
Cook for about 5 minutes, then pour into a sieve and drain. Finely chop the dried tomatoes. Wash, clean and halve the cherry tomatoes. Cut ham into cubes. Whisk eggs and milk.
Stir in dried tomatoes. Season vigorously with salt, pepper, paprika and nutmeg. Mix pasta, tomatoes, broccoli and ham. Pour into an ovenproof dish, pour egg milk over it and bake in a preheated oven (electric range: 200 °C/ convection oven: 175 °C/ gas: level 3) for approx. 60 minutes.
Cut the mozzarella into slices. Bake covered for 30 minutes, remove foil, cook for the remaining 30 minutes open and spread the cheese on the casserole 15 minutes before the end of the baking time. Sprinkle with paprika and garnish with basil.