Hello,
you might have to compare the individual components that make up the E6POS structure, i.e. MYPTP.X, MYPTP.Y etc...
Just beware you're working with REAL numbers (lots of numbers after the decimal point) so you should build in some kind of hysteresis, eg, ±1mm and ±0.1deg... (or whatever accuracy your application requires) - a very small discrepancy will resolve your comparison as false, even though the robot might be very close to where you want it to be...
good luck
vds