Is there a way to convert between boolean and string?

Hello! I am working with the Switch widget and I am trying to change the type between boolean and string in order to be compatible with Pega REST services (GET and POST) using JSON, does anyone know how this can be done?   Thank you!
1 answers

Import and Export mappings in Mendix will take care of this. If you map a string value "true" to a boolean attribute or visa versa it will work :)