getArgument

inline fun <H> getArgument(index: Int): H

Gets the argument at the specified index, cast to the expected type.

Return

The argument at the specified index, cast to type H.

Parameters

index

The index of the argument to retrieve.

Throws

if the argument is not of the expected type.