Checks that received is a TExpected or a sub-type of it. Throws a FailingExpectationException if received cannot be cast to TExpected or if received is null.
See Implementation
Checks that received is a TExpected or a sub-type of it. Throws a FailingExpectationException if received cannot be cast to TExpected or if received is null.