In a medium to large pot, bring the milk, 1/3 cup / 65g of the sugar, butter, salt, and vanilla bean to a gentle boil.
In a medium bowl, whisk together the cornstarch and remaining 1/3 cup / 65g of sugar. Add the egg yolks and mix into a smooth paste.
Ladle a small amount of the hot milk mixture into the egg mixture and whisk them together. Continue add- ing small amounts of the hot milk mixture to the egg mixture until the egg mixture is warm to the touch. Whisk the egg mixture back into the pot of the remain- ing hot milk mixture.
Bring the pot to a boil over medium-low heat, whisk- ing continuously for 3 minutes, at which point it will be thick and glossy. It’s important to cook the mixture for the full 3 minutes; if you don’t, the pastry cream will taste like cornstarch and will separate.
Strain the pastry cream into a shallow container. Cover it with plastic wrap directly on the surface of the pastry cream. Refrigerate until completely chilled, about 2 hours. This can also be done the day before.
Preheat the oven to 425°F / 220°C. Line a baking sheet with parchment paper.
On a lightly floured surface, roll the puff pastry to a 9-inch / 23 cm square, about 1/8 inch / 3mm thick. Place on the prepared baking sheet, cover with another sheet of parchment paper, and place a baking sheet on top of that to prevent the puff pastry from puffing too wildly.
Bake the puff pastry in the middle of the oven for 20 to 25 minutes, until puffed and golden brown. Remove the top baking sheet and allow the pastry to cool to room temperature on its baking sheet.
Line a greased 8-inch / 20cm square cake pan with greased parchment paper that goes up the sides to create a sling.
Gently press the cooled puff pastry into the pan and use a serrated knife if needed to trim the pastry so it fits snugly in the pan. It will have shrunk and should fit nicely.
Spread the pastry with half of the pastry cream. Place the banana slices evenly over the pastry cream. Cover the banana slices with the remaining pastry cream.
In a stand mixer fitted with the whisk attachment, whip the heavy cream, confectioners’ sugar, and vanilla on medium speed, to medium-stiff peaks. Spread the cream over the pastry filling and refrigerate for at least 30 minutes to set the layers. It can be assembled hours ahead of time and kept in the refrigerator.
Sprinkle with chopped cashews and chocolate shavings before serving.