Place cashews in a bowl of water and soak them 2 hours. Overnight is best. The longer you soak them the easier they are to digest!
Drain the cashews of the water and toss the in a food processor or blender with 1 cup water, unsweetened almond milk, lemon juice, parsley, garlic powder, salt and pepper.
Blend on high until creamy and smooth. The texture will be thick. Add more water to thin it to the consistency you like.
Preheat the oven to 375 F. Prepare a 2 1/2 quart baking dish by greasing with a little cooking spray or olive oil.
Place sliced sweet potatoes in the bottom of the prepared baking dish in an even layer then layer the remaining slices over the top layering them over each other. Pour the cream sauce over the top then sprinkle the onions and rosemary over it.
Cover and bake at 375 F for 30 minutes. Uncover and bake another 15-20 minutes, or until bubbly. Remove from the oven and let it stand 10 minutes before serving.
Notes
Be sure to use a 2 ½-quart baking dish, as the recipe suggests. A larger dish means thinner layers, and the potatoes will dry out.
Use a mandolin to ensure you cut even ¼” slices that will be tender after 55 minutes in the oven.
Cook the gratin covered so the sweet potatoes steam, then uncover to brown and bubble the top.