Canned yams are sweet potatoes canned in syrup. They won't work very well in this recipe because the canning syrup adds a lot of sweetness to the final dish. Fresh sweet potatoes are the best choice for this casserole.  Plus, they usually contain dairy, so they aren't suitable for a vegan diet.