Place carrots in buttered casserole. Mix sugar, vinegar and margarine. Heat until it begins to boil. Dissolve cornstarch in water and stir into the first mixture. Pour this sauce over the carrots in the casserole dish. Bake at 400 degrees for 20 to 25 minutes. Serves 4 to 6.