01 - Set the oven to 400°F and line a baking sheet with parchment paper.
02 - In a large bowl, coat the pumpkin cubes evenly by tossing with maple syrup, cinnamon, nutmeg, ginger, cloves, and salt.
03 - Spread the coated pumpkin cubes in a single layer on the prepared baking sheet.
04 - Drizzle the melted unsalted butter evenly over the pumpkin pieces.
05 - Bake for 35 to 40 minutes, stirring halfway through, until pumpkin is tender and caramelized at the edges.
06 - During the last 10 minutes of roasting, sprinkle chopped pecans over the pumpkin if using, then return to the oven.
07 - Serve warm and garnish with whipped cream or vanilla yogurt if desired.