Map yes/no field to true/false Boolean Fields

I have a yes/no fields that I need to map to true/false in the JSON that I sent to an API. I am using format as text however it is sending these values as “true” or “false”. Would anyone know how I can map these as true booleans and not text?

a boolean is a text value of true or false as far as I can tell from my experience

Thanks Matt, sort of correct. However most endpoints expect true booleans and not text value of booleans. I have got around this limitation by changing the code on the API side to evaluate field [contains] “true” or “false” instead of field [IS] true or false.

Thanks