Fix #118: Incorrect cast binary to boolean