A generic type guard to check the type of an object.
The type to check for.
The object to check.
Whether it matches.
A generic type guard to check the type of an object.