diff --git a/cc/google/fhir/r4/codeable_concepts.cc b/cc/google/fhir/r4/codeable_concepts.cc index 243c0f551..081154d05 100644 --- a/cc/google/fhir/r4/codeable_concepts.cc +++ b/cc/google/fhir/r4/codeable_concepts.cc @@ -287,7 +287,7 @@ absl::Status AddCoding(Message* concept_proto, const Coding& coding) { Message* target_coding = MutableOrAddMessage(concept_proto, profiled_field); CodingWithFixedCode* fixed_system_code = - google::protobuf::DownCastToGenerated(target_coding); + google::protobuf::DownCastMessage(target_coding); CopyCommonCodingFields(coding, fixed_system_code); return absl::OkStatus(); }