user871: Is there a way to convert BuiltinString or BuiltinByteString to String ?
There are these functions in the module PlutusTx.Builtins.Class
stringToBuiltinByteString :: String -> BuiltinByteString

stringToBuiltinString :: String -> BuiltinString

Are there functions to perform the inverse operation?

user2248: Yes, per the definition, BuiltinByteString derives Show, so you can write show bbs, where bbs is your variable, and it will convert your BuiltinByteString into a String

871: <p>Is there a way to convert <code>BuiltinString</code> or <code>BuiltinByteString</code> to <code>String</code> ?</p>
<p>There are these functions in the module <code>PlutusTx.Builtins.Class</code></p>
<pre><code>stringToBuiltinByteString :: String -&gt; BuiltinByteString

stringToBuiltinString :: String -&gt; BuiltinString
</code></pre>
<p>Are there functions to perform the inverse operation?</p>
 2248: <p>Yes, per the <a href="https://staging.plutus.iohkdev.io/doc/haddock/plutus-tx/html/PlutusTx-Prelude.html#t:BuiltinByteString" rel="nofollow noreferrer">definition</a>, <code>BuiltinByteString</code> derives <code>Show</code>, so you can write <code>show bbs</code>, where <code>bbs</code> is your variable, and it will convert your <code>BuiltinByteString</code> into a <code>String</code></p>
