Preheat your oven to 375 degrees Fahrenheit. Lightly grease a two quart baking dish with butter or a small amount of oil to ensure the corn does not stick to the sides during the baking process.
In a medium saucepan over medium heat, melt the butter until it begins to foam. Whisk in the all-purpose flour and cook for about one minute to remove the raw flour taste. Slowly pour in the heavy cream while whisking constantly to ensure the mixture stays smooth and free of lumps.
Continue to cook the cream mixture for three to five minutes until it thickens slightly. Stir in the salt, black pepper, garlic powder, and onion powder. Once the sauce is thick enough to coat the back of a spoon, remove it from the heat.
Add the corn kernels to the saucepan and stir until every kernel is well coated in the creamy sauce. Fold in half of the shredded cheddar cheese. Pour the entire mixture into your prepared baking dish and spread it out into an even layer.
In a small bowl, mix the panko breadcrumbs with the remaining cheddar cheese, parmesan cheese, and smoked paprika. Sprinkle this mixture evenly over the top of the corn. Place the dish in the oven and bake for 25 to 30 minutes, or until the sauce is bubbling and the top is a beautiful golden brown color. Let it rest for five minutes before serving and garnish with fresh parsley.