Brown ground beef and onion in skillet until fully cooked, add salt and pepper
Stir condensed soup in hamburger mixture
Carefully stir in drained green beans
Spread mixture into a 9x9 casserole dish
Spread mashed potatoes over mixture
Sprinkle with shredded cheese
Bake in a 350 degree preheated oven for 25-30 minutes