diff --git "a/src/mongocxx/options/change_stream.cpp" "b/src/mongocxx/options/change_stream.cpp" index 2c651a7e0..2e9c34eb6 100644 --- "a/src/mongocxx/options/change_stream.cpp" +++ "b/src/mongocxx/options/change_stream.cpp" @@ -108,7 +108,7 @@ bsoncxx::document::value change_stream::as_bson() const { if ((count < 0) || (count >= std::numeric_limits::max())) { throw mongocxx::logic_error{mongocxx::error_code::k_invalid_parameter}; } - out.append(bsoncxx::builder::basic::kvp("maxAwaitTimeMS", count)); + out.append(bsoncxx::builder::basic::kvp("maxAwaitTimeMS", static_cast(count))); } return out.extract();