def METHOD_NAME(
    configuration: ElasticsearchDestinationConfiguration,
) -> ElasticsearchDestinationDescription:
    if configuration is not None:
        # Just take the whole typed dict and typecast it to our target type
        result = cast(ElasticsearchDestinationDescription, configuration)
        # Only specifically handle keys which are named differently or their values differ (version and clusterconfig)
        result["S3DestinationDescription"] = convert_s3_config_to_desc(
            configuration["S3Configuration"]
        )
        if "VpcConfiguration" in configuration:
            result["VpcConfigurationDescription"] = cast(
                VpcConfigurationDescription, configuration["VpcConfiguration"]
            )
        result.pop("S3Configuration", None)
        result.pop("VpcConfiguration", None)
        return result