Preheat the oven to 350°F. Grease a shallow 3-quart baking dish, or divide the mixture between two smaller baking dishes.
Beat the eggs in a large bowl. Stir in the cooked, mashed sweet potatoes until blended. If the potatoes are freshly cooked, let them cool until lukewarm before adding them to the eggs.
Add the granulated sugar, melted butter, cream, vanilla, nutmeg, and allspice. Mix until evenly combined.
Spread the sweet potato mixture evenly in the prepared baking dish, leaving room for the topping.
For the topping, combine the brown sugar, flour, and chopped pecans in a small bowl. Cut the butter into small pieces and work it into the mixture with a fork or your fingertips until crumbly.
Sprinkle the topping evenly over the sweet potato mixture.
Bake for 60–70 minutes, until the center is set and the topping is browned. Begin checking earlier if using two smaller dishes. If the topping browns before the filling is done, cover loosely with foil.
Let stand for 10 minutes before serving.