When the sweet potato is cooked the natural sugars in the tuber will caramelize. This process of heating sugar to create a brown color is called the Maillard reaction. The more browning that takes place, the more chances there are of increased cancer risk from acrylamides which are created as a byproduct of this reaction.