docs: @SuppressWarnings("unchecked")
      public static <T> T asType(Path path, Class<T> c) {
          if (c == Writable.class) {
              return (T) asWritable(path);
          }
          return DefaultGroovyMethods.asType((Object) path, c);
      }