title: Getting class cast exception where both classes are exactly the same
body: <p>I am doing a JBoss SEAM project and when I view a form I get this error.</p>
  
  <pre><code>java.lang.ClassCastException:
  it.cogitoweb.csi.entity.csiorelav.CsiTipoLav cannot be cast to
  it.cogitoweb.csi.entity.csiorelav.CsiTipoLav
  </code></pre>
  
  <p>Its alway the same JPA class which is related to the form which is shown on the screen, it doesn't make sense to me why is it the same class, it seems impossible.</p>