To prepare the filling, in the bowl of a stand mixer fitted with the paddle attachment, beat the cream cheese on medium speed until light and fluffy. Add the brown sugar and beat on low speed until smooth. Scrape the bowl. Add the mashed sweet potatoes, beat on medium speed until well blended. Add the eggs, flour, cinnamon, nutmeg, and vanilla and beat until well blended.