public static bool Is <T>( this DomainObject domainObject ) where T : class => domainObject.Object is T;
public static T Cast <T>( this DomainObject domainObject ) where T : class => (T)domainObject.Object;
public static T As <T>( this DomainObject domainObject ) where T : class => domainObject.Object as T;