Succeeds if received is a TExpected or a sub-type of it.
Throws a FailingExpectationError if received cannot be
cast to TExpected or if received is null.
Note: null is considered not to be a sub-type of any class
or interface, so if null is received, the expectation always
fails.
Succeeds if received is a TExpected or a sub-type of it. Throws a FailingExpectationError if received cannot be cast to TExpected or if received is null.
Note: null is considered not to be a sub-type of any class or interface, so if null is received, the expectation always fails.