fixup previous commit

(bool) ptr -> static_cast<bool> (ptr)