title: ($Proxy6) org.postgresql.jdbc4.Jdbc4Connection@5894585b, what does it mean?
body: <p>I am trying to downcast <code>java.sql.Connection</code> to <code>org.postgresql.jdbc4.Jdbc4Connection</code> like this:</p>
  
  <p><img src="https://i.stack.imgur.com/eozCi.png" alt="($Proxy6) org.postgresql.jdbc4.Jdbc4Connection@5894585b"></p>
  
  <p>As you can see, Netbeans tells me <code>localConn</code> is <code>($Proxy6) org.postgresql.jdbc4.Jdbc4Connection@5894585b</code>, and it is <strong>not</strong> an instance of <code>org.postgresql.jdbc4.Jdbc4Connection</code>.</p>
  
  <p>So here are my questions:</p>
  
  <ol>
  <li>What does <code>($Proxy6) org.postgresql.jdbc4.Jdbc4Connection@5894585b</code> mean?</li>
  <li>How can I get <code>org.postgresql.jdbc4.Jdbc4Connection</code> from it?</li>
  </ol>
  
  <p>Thanks, </p>
  
  <p><strong>Update Information:</strong></p>
  
  <p><code>localConn instanceof org.postgresql.jdbc4.Jdbc4Connection</code> returns <strong>false</strong>.</p>
  
  <p><strong>update</strong>
  I use Mybatis.</p>