unwrapToTyped

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

Extension function for Value to unwrap Value to the given type.

Throws exception if type doesn't match.


fun <T> Value.unwrapToTyped(clazz: Class<T>): T

Extension function for Value to unwrap Value to the given type.

Throws exception if type doesn't match.

Parameters

clazz

the class to unwrap to.