code: private void doCast(GeneratorAdapter mg, TypeToken<?> outputType, Schema schema) {
      TypeToken<?> callTypeToken = getCallTypeToken(outputType, schema);
      if (!Object.class.equals(callTypeToken.getRawType()) && !outputType.getRawType().isPrimitive()) {
        mg.checkCast(Type.getType(callTypeToken.getRawType()));
      }
    }
docs: Optionally generates a type cast instruction based on the result of
  {@link #getCallTypeToken(com.google.common.reflect.TypeToken, Schema)}.
  @param mg A {@link org.objectweb.asm.commons.GeneratorAdapter} for generating instructions
  @param outputType
  @param schema