The body converts the beta-carotene in sweet potatoes into vitamin A, which is further transformed into rhodopsin – a pigment in the retina that helps with vision in low light.