As a general rule, don’t substitute sweet potatoes for regular potatoes in recipes; the two aren’t related. Sweet potatoes don’t hold together the way potatoes do, and their strong flavor can overwhelm a dish meant for a milder potato taste. Sweet potatoes are also not related to yams. But they make a fine substitute for pumpkin, especially in desserts.