Bring a large pot of water to a boil. Add the pasta and cook according to package directions. Before draining the pasta, remove 1/4 cup of the pasta cooking water. Drain and add the pasta back into the hot pot.
Add the pesto and half & half or coconut milk, tossing to combine. Thin the pasta as desired with the reserved pasta cooking water.