Analog text() function in Processing

Please help me.
What function I can use in OF, that do same in Processing do function
text( myObject.fieldX, xposition, yposition);

Big Thanks!

ofDrawBitmapString

ofDrawBitmapString( string , int , int );

i need out myObject.x, it is float, not string -(((((((( ofDrawBitmapString will be work?

I think i got it

stringstream ss;
ss << mainSwitchRect.x;
string test = ss.str();
ofDrawBitmapString(test, 20, 20);

Alternatively: ofDrawBitmapString(ofToString(mainSwitchRect.x), 20, 20);

Thank you!