Fix crash when casting from capability to bool

We previously didn't have a case statement for this.
1 job for !48 with fix-cap-casts in 119 minutes and 30 seconds (queued for 3 seconds)
detached
Status Job ID Name Coverage
  Build
passed #3869
build-toolchain

01:59:30