It will depend on the size of your sweet potato cubes (and, to some extent, how fiercely your water is boiling), so you should just check their progress periodically by sticking a fork or paring knife into a cube every few minutes until you can tell they're soft.