castToType

fun String.castToType(type: Enumerations.DataType): Type?

Cast string value (including json string) to the FHIR {@link org.hl7.fhir.r4.model.Type}