Cast an object to a type. Check the type at runtime.
Check the type of this item.
The expected type. This should be a class.
Rest
This will be included in the error message.
item
If the item is not of the correct type, throw an Error with a detailed message.
Error
Cast an object to a type. Check the type at runtime.