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

downCastTo

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

Uses DescriptionAnyAssertion.IS_A 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