static_cast of condition

fixes error in MSVC 120 with ambigous function call.