Preheat the oven to 200°C. Line an 20 x 20 cm baking pan with parchment paper, leaving overhang on two sides for easy lifting. Spread the sweet potato cubes on a small baking tray, toss with 1 tablespoon maple syrup and 1 tablespoon melted butter, and roast for 20 minutes until tender.
Reduce the oven temperature to 180°C. Transfer the roasted sweet potato to a bowl and mash until mostly smooth. Measure out 160 grams mashed sweet potato for the filling and set it aside to cool slightly.
In a large bowl, combine the flour, oats, brown sugar, cinnamon, nutmeg, and salt. Add the cold cubed butter and rub it into the dry ingredients with your fingertips until the mixture forms coarse crumbs that hold together when pressed.
Reserve about 180 grams of the crumb mixture for the topping. Press the remaining crumb mixture firmly and evenly into the bottom of the lined pan. Bake for 12 minutes until the crust looks lightly set and just begins to turn golden at the edges.
While the crust bakes, make the filling. In a medium bowl, combine the diced apples, 160 grams mashed roasted sweet potato, lemon juice, 80 milliliters maple syrup, cornstarch, and vanilla extract. Stir until the apples are evenly coated and the cornstarch is fully dissolved.
Spread the apple and sweet potato filling evenly over the hot crust, including any juices in the bowl. Sprinkle the reserved crumb mixture evenly over the top without pressing it down.
Bake for 23 minutes, or until the topping is golden and the apple filling is bubbling around the edges. If the top is browning too quickly, loosely tent the pan with foil for the last few minutes.
Place the pan on a wire rack and cool completely for about 20 minutes, then chill for 20 minutes more to help the bars firm up for clean slicing. Lift from the pan using the parchment, cut into 16 bars, and serve.