code: @SuppressWarnings ( "unchecked" )
      @Override
      public <T extends SmbSession> T unwrap ( Class<T> type ) {
          if ( type.isAssignableFrom(this.getClass()) ) {
              return (T) this;
          }
          throw new ClassCastException();
      }
docs: {@inheritDoc}
  
  @see jcifs.SmbSession#unwrap(java.lang.Class)