If you're preparing the dish in advance, cook the sweet potatoes until they are slightly underdone. Then, when it's time to serve, reheat them gently on the stovetop or in the microwave, allowing them to finish cooking and become tender.