title: java.lang.Integer cannot be cast to [Ljava.lang.Object;
body: <p>I'm currently retrieving data using XML-RPC, this is what I have:</p>
  
  <pre><code>Object[] params = new Object[]{param1, param2};
  Object[] obj = new Object[]{};
  
  try {
      obj = (Object[]) client.execute("method.name", params);
  } catch (XmlRpcException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
  } 
  
  return obj;
  </code></pre>
  
  <p>The problem is that sometimes it will return -1 and I'll get this error: java.lang.Integer cannot be cast to [Ljava.lang.Object; - I was wondering if there was a way around this problem?</p>