They both look very similar. Sweet potatoes are typically sweeter and more readily available. I haven’t tried this recipe using yams instead of sweet potatoes.