code: private static int firstCastArguments(Class[] tmp) {
          int i;
  
          for (i = 0; i < tmp.length; i++) {
              if (isCastType(tmp[i])) {
                  return i;
              }
          }
          return -1;
      }
docs: /* @return true if the specified array contains at least one cast type.