Unfortunately this is not completely true as there are basically 2 types of sweet potato - the orange ones (as described below) and the ones with the purple skin & whitish flesh
Jane Scrape the skin off lightly,the sweet potato underneath is white,the yam is yellow/orange shade.