public void CheckForOfType([OfType(typeof(IComparable))]object myObject) { // Argument.IsOfType(() => myObject, typeof(IComparable)); }