1. Preheat oven to 350 degrees F (175 degrees C). Grease a 2 quart casserole dish.
2. In a large bowl combine corn, milk, egg, butter, sugar, flour, salt and pepper. Mix well and transfer to prepared casserole dish.
3. Bake, uncovered, in preheated oven for 1 hour.