You don't cast strings to class instances: tough it would be possible to write a constructor that accepts a string, or a static cast operator it's not what would normally happen - you cast between similar types, not totally different ones!
I assume that your
QueryRequest
method returns a string of some type and this is the line that throws the error:
Xxl.Query xxl = (Xxl.Query)QueryRequest(result );
If so, you need to look at either the
QueryRequest
method itself to find out exactly what it returns, and how that relates to your
Query
class, or use the debugger to work it out from an actual example of the string it returns.
Sorry, but we can't help you do that: we have no access to your code or data!