Xbee Api connection

It won't work. The cast I'm trying to do didn't work because the compiler doesn't know how to convert them. That's the conclusion I get.

Pssst. Quit waving your hands around and post some code.