Slice bread into 1 inch thick slices. Set aside.
Prepare a 13x9 inch pan with cooking spray.
Place slices in your prepared pan. Cut slices in half where necessary so that there is one full layer of bread covering the bottom of the pan.
Open your can of pie filling and spread it across the top of the bread layer as evenly as possible. Sprinkle with raisins if desired.
Top pie filling with remaining bread. Again, cut slices in half to create a bread layer that overlaps the bottom.
In a large bowl, whisk together the eggs, milk, vanilla, cinnamon and nutmeg.
Pour over bread and apples.
Adjust bread and egg mixture to try and make sure bread is coated as best you can.
Cover and refrigerate overnight.