convertTo

inline fun <T : Value> Value.convertTo(): T

Converts this value to a T, or throws an error if it cannot be converted.

Parameters

T

The type to convert to.

Throws

If the value cannot be converted.