asObj

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

If this is a Value.Native, returns the native object, otherwise throws an error.

Parameters

T

The type to convert to.

Throws

If the value cannot be converted.