Heat a frying pan over medium heat. Add a bit of oil and diced sweet potatoes. Continue cooking until all sides of the sweet potato are evenly browned and fork-tender. (About 10 minutes). Remove sweet potatoes from the pan and place in a large bowl.
Add a bit more oil to the pan and the diced onions. Sautee until they are soft, translucent, and a bit caramelized.
Add the onions, corn, black beans, and spices to the large mixing bowl with the sweet potatoes and mix. Add the mixture back to the frying pan and cook until heated through and fragrant. Add to the dish of your choice (quesadillas, enchiladas, burritos, scrambles, etc.) or eat it on its own as a side or comforting bowl!
Fair warning, these are pretty spicy! If you're not a fan of spice, omit the cayenne.