Hmm, this has turned into quite a discussion. To clarify what I was using this for, I have decided to make a GUI for my script, and I am using a few checkboxes. Of course, they have a true or false value, and I wanted to pass the values as numeric so that they would work with the existing scripting I had already done. As I stated before, this now works using the code SpunkyLoveMuff provided
code:
myVar = myVar?1:0;
This seems to do exactly what I was looking for, I just need to use it for each checkbox that I have. Initially, I had tried multiplying the boolean value by 1 which didnt seem to do anything for me. I havent tried any of the other methods mentioned, as they first one worked for me