A delicious casserole of Instant Pot creamy potatoes and ham au gratin topped with cheese.

Rub a 6 cup glass mold with the garlic. Butter the mold.
Place the flour in a medium bowl and gradually whisk in the milk and cream. Reserve.
Spread a third of the potatoes at the bottom of the mold, cover with half the ham and season with pepper. Place another third of the potatoes, the rest of the ham and season with pepper. Cover with the remaining potatoes.

Whisk the liquid mixture again and pour into the mold, taking care to pour some on all the potatoes.

Place a wire rack in the bowl of the Instant Pot and pour in 1 ½ cups of water. Place the gratin on a silicone or aluminum foil sling before placing it on the rack in the Instant Pot.
Secure lid with the steam release button at sealing. Select "pressure or manual", set 35 minutes to "high" with "keep warm to off". Press on "start". The appliance will take about 10 minutes before its start cooking.
When the end of cooking alarm sounds, let stand 10 minutes and release the pressure. Remove the lid, the gratin is cooked through when the potatoes barely resist when a fork is inserted. If necessary, return the gratin to cook for a few minutes not forgetting to let stand 10 minutes before releasing pressure.
Set the oven rack in the upper third of the oven and preheat the grill.
Take the gratin out of the Instant Pot, remove it from the sling and place it on a baking sheet. Cover with cheese and broil for a few minutes in the oven until golden brown. Let stand 10 minutes before serving.