Place the stick of margarine in a microwave-safe bowl and melt for 30 seconds.
Add sweet potatoes, eggs, vanilla and white sugar and mix well.
Pour into a buttered casserole dish.
In a small bowl, combine the flour, 1/3 cup of margarine and brown sugar and mix well.
Spread on top of the potato mixture.
Cook at 350 degrees for 35 minutes.