"Cannot cast to `bool`"?