coerce

inline fun <T> coerce(raw: Any, parameter: FunctionParameter, call: FunctionCall<*>, noinline factory: (Any) -> Value<*>?): T

Same as convertArgument, unwrapped to the static type itself.

Generated function bodies call this. When binding already converted the argument, every step before the factory short-circuits, so the conversion does not run twice.

Return

raw as a T

Type Parameters

T

the static type to produce