Unwraps an R value to a (TS) native value.