doc / ch.tutteli.atrium.logic.creating.transformers / SubjectChangerBuilder / DescriptionRepresentationStep / downCastTo

downCastTo

open fun <TSub : Any> downCastTo(subType: KClass<TSub>): SubjectChangerBuilder.FailureHandlerStep<T, TSub> (source)

Uses DescriptionAnyExpectation.TO_BE_AN_INSTANCE_OF as description of the change, the given subType as representation and tries to perform a down-cast of container's AssertionContainer.maybeSubject to the given type TSub