Since unsalted cashews closely resemble pine nuts in color, flavor, and texture, they can easily be swapped in a pesto recipe. Pesto can also be made with walnuts, hazelnuts, almonds, pistachios, pecans, sunflower seeds, and even macadamia nuts.