Preheat the oven: electric cooker: 225 °C/circulating air: 200 °C/gas: stage 4. Wash and halve the cherry tomatoes. Dice the dried tomatoes. Drain mozzarella balls.
Bring the cream in a saucepan to the boil briefly. Meanwhile grate parmesan finely. Season the cream with salt and pepper.
Mix gnocchi, mozzarella, dried and cherry tomatoes and half parmesan, put into the mould. Pour cream over it, sprinkle with the rest of the parmesan. Bake in the oven for about 15 minutes.
Wash the basil and pluck the leaves from the stems. Serve the casserole with basil and slices of ham.