Brown hamburger and onion and mix with beans and soup in a 2 quart casserole dish.
Mash 4 medium sized boiled potatoes and add ½ cup warm milk and 1 beaten egg.
Spread potatoes on top of bean mixture and sprinkle grated cheese on top of potatoes.
Bake at 350 F for 30 minutes.