1. Heat the olive oil in a large skillet over medium-high heat.
2. Add the onion and cook for about 5 minutes, until softened.
3. Add the garlic and cook for 1 minute longer.
4. Stir in the sweet potato, thyme, oregano, and salt and pepper to taste.
5. Place the beans in a bowl and mash them with a fork or potato ricer.
6.Add the mashed beans to the skillet and stir to combine with the onion mixture.
7. Then, cook for about 10 minutes, turning frequently, and pressing the spatula down on the mixture, until the bottom is lightly crisped and browned when turned.
8. Serve hot.
Chef's Tip: For this recipe, the sweet potato should be tender but still firm enough to dice. If you don’t have a cooked sweet potato (or the 45 minutes to an hour it takes to bake one), you can use whichever potatoes you've got in your kitchen and microwave one in minutes. Pierce the potato with a fork in three places. Place the potato on a microwavable plate and microwave on high for 5 minutes, rotating halfway through.You may need to microwave it a minute or two longer, depending on the size of the potato, until it is tender.