Preheat your oven to 350°F (175°C) and grease an 8×8-inch baking dish.
In a medium bowl, combine the flour, softened butter, sugar, salt, vanilla extract, and egg yolk. Mix until the dough comes together.
Press the dough evenly into the bottom of the prepared baking dish to form the crust. Bake for 10-12 minutes or until lightly golden.
While the crust is baking, prepare the cheese filling. In a mixing bowl, beat the softened cream cheese, sugar, vanilla extract, and egg until smooth and creamy.
Once the crust has baked, remove it from the oven and spread the cream cheese mixture evenly over the warm crust.
Spoon the cherry pie filling over the cream cheese layer, spreading it gently to cover as evenly as possible.
Return the baking dish to the oven and bake for an additional 25-30 minutes, or until the filling is set and the edges are lightly golden.
Remove from the oven and allow to cool in the pan. Once cooled, cut into bars and dust with powdered sugar if desired.
Serve and enjoy your delicious Cherry Cheese Danish Bars!