asQueryParameter

Casts the receiver to a QueryParameter of T, failing with a descriptive error otherwise.

Receiver

candidate value provided by the client DSL.

Return

the receiver cast to QueryParameter with the expected value type.

See also

Throws

when the receiver is not a QueryParameter of the expected type.