Found this recipe in a Southern Living Cookbook. It is a bit different from the usual recipes in that it uses both baking and sweet potatoes and also gruyere cheese. Posting here for safekeeping; I haven't tried it yet but it looks delicious.
Saute onion in oil over medium high heat until tender. Add garlic and cook 30 seconds longer. Remove from heat and set aside. Place the potatroes in a large bowl.
Preheat oven to 400°F Combine flour, salt, and pepper. Sprinkle over potatoes, tossing to coat. Arrange half of the potatoes in a greased 13x9 inch baking dish. Top with onion, ham, and half of the cheese. Top with the remaining potatoes. Pour cream over potatoes, dot with butter, and cover with aluminum foil.
Bake for 50 minutes. Uncover, top with the rest of the cheese, and bake 20 minutes more, or until potatoes are tender and cheese is browned. Let stand 10 minutes before serving.