In a large bowl, combine the sugar and flour. Whisk in the eggs, milk, butter, salt and pepper. Stir in the corn and cream-style corn.
Pour the corn mixture into a greased 1-½-quart baking dish. Bake, uncovered, at 350°F for 45 to 50 minutes or until a knife inserted in the center comes out clean.
