docs: public static <T> T asFacet(Class<T> facetType, Object subject)
      {
          T facet = null;
          if (subject instanceof Faceted)
          {
              facet = ((Faceted)subject).asFacet(facetType);
          }
          else if (facetType.isInstance(subject))
          {
              facet = facetType.cast(subject);
          }
  
          return facet;
      }