Using static_cast instead of lambda for binding std::sqrt