docs: @Nullable
    public <T> T getCastedState (@Nullable final ObjectType aOT, @Nullable final String sStateID)
    {
      final IHasUIState aObject = getState (aOT, sStateID);
      if (aObject == null)
        return null;
  
      // Special handling for UI state wrapper to retrieve the contained object
      if (aObject instanceof UIStateWrapper <?>)
        return ((UIStateWrapper <?>) aObject).<T> getCastedObject ();
  
      // Regular cast
      return GenericReflection.uncheckedCast (aObject);
    }