Please don't! Putting aluminum foil in the microwave is a serious fire hazard. You can, however, wrap your sweet potato in a damp paper towel before you put it in the microwave. The paper towel can help retain some of the heat and moisture.