Preheat the oven to 400°F (200°C)
Remove the husks and silk from the corn
Rinse the corn and pat it dry
Brush the corn lightly with oil or melted butter
Season with salt if desired
Place the corn on a baking sheet or directly on the oven rack
Roast for 20 to 25 minutes, turning halfway through
Remove when the kernels are tender and lightly browned
Serve hot with butter, salt, or your preferred toppings
