Re-add (int) cast.  It's expecting 0 or 1, not really a bool.  #3132