Mix potatoes, sugar, salt and margarine. Add milk, eggs, vanilla and pineapple. Mix all together and pour into casserole dish. Bake at 325 degrees until brown and bubbly.
May top with marshmallows, if desired, before baking.

(This recipe was contributed as part of a "Cook of the Week" feature.)