public static boolean areTypesConvertible(Class[] srcTypes, Class[] destTypes) {
    Support.assertArg(srcTypes.length == destTypes.length,
        "Arguments 'srcTypes' and 'destTypes' must be of same length");

    for (int i = 0; i < srcTypes.length; i++) {
      if (!isTypeConvertible(srcTypes[i], destTypes[i])) {
        return false;
      }
    }

    return true;
  }
Determines if the all classes represented by the first parameter can be safely converted to the
classes represented by the second parameter.

@param srcTypes the source classes to be converted.
@param destTypes the target classes to be converted to.
@return the {@code boolean} value indicating whether all objects of the first array can be
        converted to objects of the second array.
geode-core/src/main/java/org/apache/geode/cache/query/internal/types/TypeUtils.java