type pattern
A pattern that tests a value's type, like is string s.
A type or declaration pattern matches when the value is of the given type, optionally binding it to a new variable.
Examples
if (item is Book book) Console.WriteLine(book.Author);tests the type and names the result in one step.
See also