castTo

open override fun <T : Term> castTo(): T

Helper method aimed at down-casting Terms using a fluent style

Return

the current term, cast'd into type T

Type Parameters

T

must be a subtype of Term

Throws

if the current term is not of type T