It is better to roast sweet potatoes before smashing. Boiled sweet potatoes tend to get waterlogged, while roasting brings out their natural sweetness and concentrates the flavor.