code: @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);
      }
docs: Converts this Path to a {@link groovy.lang.Writable} or delegates to default
  {@link org.codehaus.groovy.runtime.DefaultGroovyMethods#asType(Object, Class)}.
  
  @param path a Path
  @param c    the desired class
  @return the converted object
  @since 2.3.0