You can convert the Mat image to IplImage by using the following:
*imageThresh = imageThreshMat.operator IplImage();