Preheat your oven to 350°F (175°C) and grease a 9×13-inch baking dish with butter or non-stick cooking spray.
Cook the spaghetti according to the package instructions until al dente, drain and set aside.
In a large skillet or frying pan, cook the ground beef or turkey over medium heat until browned and cooked through, add the diced onion and minced garlic, and cook until softened and fragrant, about 3-4 minutes, then drain any excess fat from the skillet.
Stir in the marinara sauce, diced tomatoes, dried oregano, dried basil, salt, and pepper, and simmer the sauce for 5-7 minutes, allowing the flavors to meld together.
In a mixing bowl, combine the softened cream cheese, sour cream, and grated Parmesan cheese until smooth and well combined.
Spread a thin layer of the meat sauce evenly over the bottom of the prepared baking dish, layer half of the cooked spaghetti over the sauce, spread the cream cheese mixture evenly over the spaghetti layer, top with the remaining spaghetti, followed by the remaining meat sauce.
Sprinkle the shredded mozzarella cheese evenly over the top of the casserole.
Cover the baking dish with aluminum foil and bake in the preheated oven for 25-30 minutes, or until the cheese is melted and bubbly.
Remove the foil from the baking dish and garnish with chopped fresh parsley, if desired, and allow the casserole to cool slightly before serving.