Baking or boiling sweet potatoes is the best way to cook these potatoes for the casserole. Make sure to cook the potatoes until they are fork-tender and can mash easily without any lumps.