01 - Preheat oven to 400°F. Lightly grease a large baking dish and set aside.
02 - Bring a large pot of salted water to a rolling boil. Add the penne or rigatoni and cook until just al dente, then drain well and set aside.
03 - Heat olive oil in a large skillet over medium heat. Season the chicken pieces with salt and pepper, then add to the skillet. Sauté for 5 to 6 minutes, turning occasionally, until golden brown and cooked through. Remove from heat.
04 - In a large mixing bowl, toss together the drained pasta, seared chicken, basil pesto, heavy cream, minced garlic, and chopped sun-dried tomatoes until everything is evenly coated.
05 - Transfer the pasta and chicken mixture to the prepared baking dish, spreading it into an even layer. Scatter the shredded mozzarella and grated Parmesan over the top.
06 - Place in the preheated oven and bake for 20 minutes, or until the cheese is melted, bubbly, and golden on top.
07 - Remove from the oven and let rest for 5 minutes. Garnish with fresh basil leaves if desired, then serve warm.