Preheat the oven: Set your oven to 375°F (190°C). Grease a 9x13-inch baking dish with butter or oil.
Cook the beef: Heat a large skillet over medium-high heat.
Add oil, then the onion. Cook 3–4 minutes until softened. Add garlic and stir for 30 seconds.
Add the ground beef, breaking it up with a spatula, and cook until browned. Drain excess fat if needed.
Season and add flavor: Stir in salt, pepper, smoked paprika, tomato paste, mustard, and ketchup if using. Mix until the beef is well coated.
Fold in the chopped pickles and bacon if using. Taste and adjust seasoning.
Layer in the dish: Spread the beef mixture evenly in the baking dish. Top with 1 cup of shredded cheddar.
Make the custard topping: In a bowl, whisk eggs, heavy cream, and almond milk until smooth.
Add a pinch of salt and pepper. Pour gently over the beef and cheese layer.
Add more cheese: Sprinkle the remaining 1 cup of cheddar over the top.
Bake: Place the dish in the oven and bake for 20–25 minutes, or until the topping is set and the edges are bubbling. The center should be just firm.
Rest and garnish: Let the casserole rest for 5–10 minutes to set.
Garnish with extra chopped pickles, green onions, or a drizzle of sugar-free ketchup and mustard if you like.
Serve: Cut into squares. Add shredded lettuce or a side salad for that full “cheeseburger” vibe.