01 - Preheat oven to 400°F. Lightly grease a 9x13-inch baking dish with olive oil or cooking spray.
02 - Bring a large pot of salted water to a rolling boil. Add the pasta and cook until just al dente, about 1 minute short of package directions. Drain well and set aside.
03 - While the pasta cooks, heat olive oil in a large skillet over medium-high heat. Season the chicken pieces with salt and pepper, then add to the skillet in a single layer. Sauté for 5 to 6 minutes, turning occasionally, until golden brown and cooked through (internal temperature reaches 165°F). Remove from heat.
04 - In a large mixing bowl, combine the drained pasta, cooked chicken, basil pesto, heavy cream, minced garlic, and chopped sun-dried tomatoes. Toss everything together until the pasta and chicken are evenly coated with the pesto cream sauce.
05 - Transfer the pasta mixture to the prepared baking dish, spreading it into an even layer. Sprinkle the shredded mozzarella evenly over the top, followed by the grated Parmesan cheese.
06 - Place in the preheated oven and bake for 20 minutes, or until the cheese is melted, bubbly, and golden on top. If desired, broil for the last 1 to 2 minutes for a deeper golden crust.
07 - Remove from the oven and let the bake rest for 5 minutes to allow the sauce to set. Garnish with fresh basil leaves if desired, then serve warm.