Combine the cream of mushroom, sour cream, salt, pepper, and shredded cheese in a casserole dish. Fold in the drained green beans. Top with French fried onions.
Cover with foil and bake in a 350 degree oven for 25-30 minutes. Remove foil for last 5 minutes to brown onions.