In a frying pan, heat olive oil. Add chopped onion and garlic. Saute until soft for 2-3 minutes.
Add thawed ground beef to the frying pan and cook until hamburger is completely browned. Remove from heat and set aside.
In a large kettle prepare pasta according to package directions. Use 12-16 ounces of pasta depending on how many people you will feed.
Drain pasta from the kettle and then place the drained pasta back into the kettle. Add in the hamburger, baked beans, barbeque sauce, tomato sauce, and sun-dried tomatoes. Stir well and add salt and pepper to taste.
Transfer entire mixture into a 2-1/2 quart casserole dish and bake for 40 minutes at 350 degrees until heated through.