Fixes explicit operator() bool of Boost.Optional in c++11 mode.

Uses static_cast<const bool>() rather than explicit conversion.