Both boiled and baked sweet potatoes can be used for pie; however, I find that baked sweet potatoes have a more complex flavor from the sugars steaming and concentrating in the skins while baking.