HikariCP pass Oracle custom type
I switched to HikariCP from Oracle default datasource. There is a piece of code where I pass custom Oracle type to a stored parameter, and cast java.sql.Connection to oracle.jdbc.OracleConnection . try(OracleConnection connection = (OracleConnection) dbConnect.getConnection()) { try(CallableStatement callableStatement = connection.prepareCall("{? = call pkg_applications.add_application(?,?,?)}")) { callableStatement.registerOutParameter(1, Types.VARCHAR); callableStatement.setString(2, form.getPolicyNumber()); callableStatement.setString(3, form.getPolicyStart()); Object[][] uploads = new