Added bool to int cast