Heat the oven to 400F degrees. Grease a 9x13 casserole dish or similar baking dish with oil spray or butter.
Peel the potatoes (or you can leave the skin on if you prefer) then cut into 1/8-inch slices. I find a mandoline to be *key* for making this easy and quick!
Add the butter to a medium-sized saucepan set over medium heat. Once the butter is melted, add the onion and garlic and cook until the onion has softened and the garlic is fragrant, 2 to 3 minutes. If the butter starts to brown, lower the heat and continue to cook.
Stir in the thyme, salt, pepper, and paprika. In a separate container, add the cornstarch to the milk and whisk to combine.
Pour the milk mixture into the pot and stir until the sauce bubbles and thickens, about 1 minute.
Arrange half of the potato slices in an even layer in the bottom of the casserole dish.
Pour half of the sauce over the potatoes, then sprinkle with 2 tablespoons of the Parmesan cheese.
Place the remaining potato slices on top, shingling them to make the top look somewhat decorative and neat.
Pour the remaining sauce over the top, sprinkle with the remaining 2 tablespoons of Parmesan, and then top with the shredded cheddar cheese.
Cover the casserole with aluminum foil then bake until bubbling and the potatoes are tender (A knife should easily slide in and out of the center of the casserole.), 45 to 50 minutes.
Remove the foil then place the casserole back in the oven for 5 to 8 minutes to brown the cheese.
Allow the casserole to cool for 5 to 10 minutes, then sprinkle with chives, if using, and serve. Leftovers can be stored in an airtight container in the refrigerator for 3 to 4 days.