Converting YES/NO to true/false

I hope this help! :-)