01 - Preheat the oven to 400°F. Line a large baking sheet with parchment paper.
02 - In a large bowl, toss the cubed squash with olive oil, maple syrup, cinnamon, nutmeg, salt, and pepper until evenly coated.
03 - Spread the squash in a single layer on the prepared baking sheet. Roast for 25 minutes.
04 - Remove the baking sheet from the oven, scatter the cranberries evenly over the squash, and toss gently.
05 - Return to the oven and roast for an additional 15 minutes, or until the squash is tender and caramelized and the cranberries have softened.
06 - Transfer to a serving dish and garnish with chopped parsley or toasted pecans if desired. Serve warm.