Sweet Potatoes are very carb rich, so are not a good replacement for potatoes. Pumpkins and members of the squash family are better, as are celeriac.
One of the best replacements I've used for mashed potatoes is cauliflower. I cook it up until it's soft, then mash it up with butter, cheese, and pepper.