Roast the sweet potatoes. Heat the oven to 400°F and line a baking sheet with parchment paper. Rub 3 pounds sweet potatoes with 1 tablespoon olive oil or canola oil. Prick each with a fork, set them on the prepared pan, and roast for 20-30 minutes, until a knife just barely slides through. They will continue to cook in the syrup.
Make the syrup. While the potatoes roast, combine 8 ounces chopped piloncillo with 1 1/2 cups water in a large skillet. Add 2 cinnamon sticks, 2 whole star anise, 3 wide strips of orange peel, 1/4 cup fresh orange juice, and 1/4 teaspoon kosher salt. Bring to a simmer over medium-high heat, stirring to dissolve the sugar. Reduce to medium heat and simmer for 8–10 minutes, until slightly thickened.
Cut the sweet potatoes. Let them cool just enough to handle. Peel if desired, then cut into 1 1/2-inch-thick rounds or large chunks.
Glaze the sweet potatoes. Add the sweet potatoes to the syrup. Simmer over medium heat for 5–7 minutes, spooning the syrup over the tops and turning the pieces, being careful not to break them. Cook until the glaze coats the sweet potatoes.
Finish the glaze. Take the skillet off the heat and gently stir in 1 tablespoon butter, if using. Remove the cinnamon sticks, star anise, and orange peel.
Serve warm. Transfer the sweet potatoes to a platter and spoon the glaze over them. Sprinkle with 2 tablespoons roughly chopped toasted pepitas, pomegranate, and flaky sea salt to taste. Add a drizzle of Mexican crema or a dollop of sour cream if desired.