If the cubed sweet potatoes are still hard in the middle, that means they didn't cook long enough to soften all the way through.