Spray a 9x13 baking pan with non-stick cooking spray. Combine soup, margarine, salt, pepper, onion, and cheese. Gently mix in the potatoes and pour into prepared pane. Bake in 350 degree oven for 35 to 40 minutes.