Though sweet potatoes and yams are actually different vegetables, the canned yams you’ll find on your grocery store shelves are, most often, sweet potatoes simply labeled as yams. This means you can use canned yams as a substitute in your sweet potato soufflé recipe and in several other treats as well, including sweet potato pie.