public void checkCast(final Type type){
  if (!type.equals(OBJECT_TYPE)) {
    typeInsn(Opcodes.CHECKCAST,type);
  }
}

public void checkCast ( final Type type ) { if ( ! type . equals ( OBJECT_TYPE ) ) { typeInsn ( Opcodes . CHECKCAST , type ) ; } }
generates the instruction to check that the top stack value is of the given type .
