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.