title: How to cast an object to the class returned by getClass()
body: <pre><code>ProtostuffIOUtil.mergeFrom(data,o,RuntimeSchema.getSchema(o.getClass()));
  </code></pre>
  
  <p>How to cast Object to getClass() Class. With the above method call, I will get a compile error because the method requires that the o variable is of the same class as the o.getClass() parameter. How does one get around this?</p>