public <T> Try<T> tryApply(I i, Class<T> clazz) {
    return tryApply(i).cast(clazz);
  }
Returns a success or failure wrapper for the function call, and casting the result to {@code clazz}.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/Memoized.java