As pointed out in #4, accessing PureScript data model internals (ie value0 property) is not recommended. This API is not officially supported and might change.
Doing it the right way would mean converting PS values to primitive values (and back) on PS side.
However, that would introduce significant boilerplate and possibly reduce performance.