The Fabl datatype boolean implements xsd:boolean.
int toInt(boolean b)
returns 0 for false, and 1 for true.