doc / ch.tutteli.atrium.domain.builders.creating.changers / SubjectChangerBuilder / DescriptionRepresentationStep / downCastTo

downCastTo

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

Uses DescriptionAnyAssertion.IS_A as description of the change, the given subType as representation and tries to perform a down-cast of originalAssertionContainer's Expect.maybeSubject to the given type TSub