I have not tested canned sweet potatoes or yams. However, as long as you strain out the liquid, I think canned would work totally fine! Roasted sweet potatoes will have more flavor than canned ones.