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

downCastTo

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

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