bool theBool = true; int boolToInt = theBool ? 1 : 0; //1 if theBool is true and 0 if theBool is false