To avoid overly moist mash, the sweet potato should be cooked until tender but not overcooked. Check the cooking by pricking the sweet potato with a fork.  If it can easily be mashed, it's ready.