01 - Preheat oven to 400°F. Grease a 9-inch pie dish with olive oil.
02 - In a bowl, toss grated sweet potatoes with olive oil, salt, and pepper. Press the mixture evenly into the bottom and up the sides of the prepared dish to form a crust.
03 - Bake the crust for 18 to 20 minutes, or until edges start to brown. Remove from oven and reduce oven temperature to 350°F.
04 - While the crust bakes, heat olive oil in a skillet over medium heat. Sauté onion and red bell pepper for 4 to 5 minutes until softened. Add diced ham and cook for 1 more minute. Remove from heat.
05 - In a large bowl, whisk together eggs, milk, cream, thyme, salt, and pepper until well combined.
06 - Spread the sautéed vegetables and ham over the baked sweet potato crust. Sprinkle grated cheese evenly on top.
07 - Pour the egg mixture over the filling.
08 - Bake for 30 to 35 minutes, or until the center is set and the top is golden. Cool slightly before slicing and serving.