docs: @SuppressWarnings("unchecked")
      public static <R, K, V, T> R unwrap(RedisCommand<K, V, T> wrapped, Class<R> iface) {
  
          RedisCommand<K, V, T> result = wrapped;
  
          if (iface.isInstance(wrapped)) {
              return iface.cast(wrapped);
          }
  
          while (result instanceof DecoratedCommand<?, ?, ?>) {
              result = ((DecoratedCommand<K, V, T>) result).getDelegate();
  
              if (iface.isInstance(result)) {
                  return iface.cast(result);
              }
          }
  
          return null;
      }