Casting from simplexml to int for user

Userid was being sent over to webservice as a simplexml object. Now it is being sent as the expected integer.