Heat a large pot of salted water for the pasta and cook 8 oz elbow macaroni to al dente while making the batter for the custard. Drain the pasta and set it aside.
To make a roux, combine2 oz unsalted butter and 1 ¼ oz all purpose flour in a small saucepan. Cook over medium heat, whisking constantly, until it begins to simmer and thickens to a pale beige paste. Slowly whisk 16 oz whole milk into the roux. Continue to whisk until the sauce has no lumps and is the consistency of thick cream. Scrape the seeds from 1 vanilla bean into the warm sauce with ⅛ teaspoon table salt. Set aside to cool until it's just barely warm or room temperature (see note).
Preheat the oven to 350 °F. Lightly butter a 2 quart casserole dish.
On low speed, cream8 oz cream cheese and 4 oz granulated sugar in a large mixing bowl until it's smooth. Scrape the bowl so there are no lumps of cream cheese. Add 2 large eggs, one at a time, scraping the bowl after each egg to avoid lumps. Add the cooled white sauce to the cream cheese mixture to form a batter.
Add the cooked pasta and2 cups blueberries to the batter then pour the batter into the casserole dish. Combine 1 oz panko breadcrumbs and 2 oz granulated sugar and sprinkle the topping over the custard.
Bake until golden brown, slightly puffed, and the custard is set in the center.
Just like savory macaroni and cheese, this is best still warm from the oven. Leftovers can be refrigerated and re-warmed.
