title: Casting java.sql.Connection to oracle.jdbc.OracleConnection results in compilation error
body: <p>I would like to cast <code>java.sql.Connection</code> to <code>oracle.jdbc.OracleConnection</code> in order to bind data on <code>ARRAY</code> to my query.</p>
  
  <p>When I try the following on scala 2.10, bonecp 0.8.0 and slick 2.0.0:</p>
  
  <pre><code>import com.jolbox.bonecp.ConnectionHandle
  import oracle.jdbc.OracleConnection
  
  def failsWithCompilationError() = {
    Database.forDataSource(ds).withDynTransaction {
      val connection = dynamicSession.conn.asInstanceOf[ConnectionHandle].getInternalConnection
      println(connection.unwrap(classOf[OracleConnection]))
      // When uncommenting following two lines a compilation error "error while loading AQMessage, class file '.../ojdbc6.jar(oracle/jdbc/aq/AQMessage.class)' is broken" will occur
      // val oracleConnection: OracleConnection = connection.unwrap(classOf[OracleConnection])
      // println(oracleConnection)
    }
  }
  </code></pre>
  
  <p>and uncomment the two lines with assignment to a <code>val</code> of type <code>OracleConnection</code> and <code>println</code>a compilation failure</p>
  
  <p><code>[error] error while loading AQMessage, class file '.../ojdbc6.jar(oracle/jdbc/aq/AQMessage.class)' is broken</code> will occur.</p>
  
  <p>I already verified that the ojdbc6.jar should not be corrupted by downloading newer version from Oracle.</p>