Beat cream cheese, sugar, and flour at low speed with an electric mixer; add egg and extracts, beating until smooth. Set aside.
Stir together cherries, cherry pie filling, and 2 tablespoons melted butter in a large saucepan, and cook over medium heat, stirring often, 5 minutes or until thoroughly heated. Spoon hot cherry mixture into a lightly greased 9-inch deep-dish pie plate. Spoon cream cheese mixture evenly over hot cherries.
Combine crushed vanilla wafers and remaining 2 tablespoons melted butter.
Sprinkle evenly over cream cheese mixture.
Bake at 350 for 30 minutes or until golden brown and set.