01 - Preheat the oven to 375°F (190°C).
02 - Heat olive oil in a large skillet over medium heat. Add chopped onion and sauté for 4 to 5 minutes until translucent.
03 - Stir in minced garlic and cook for an additional minute, stirring frequently.
04 - Incorporate tomato paste, smoked paprika, dried thyme, brown sugar, salt, and black pepper. Cook for 1 to 2 minutes until fragrant.
05 - Add crushed tomatoes and bring the mixture to a simmer. Cook for 5 minutes, stirring occasionally.
06 - Add the drained beans, stirring to combine. Simmer for another 5 minutes to meld flavors.
07 - Transfer the bean mixture to a lightly greased medium baking dish (approximately 2-quart capacity).
08 - If desired, evenly sprinkle grated cheddar cheese and breadcrumbs over the top.
09 - Bake uncovered for 35 to 40 minutes until the top is bubbling and golden brown.
10 - Remove from the oven and allow the casserole to rest for 5 minutes before serving.