

# TypeConverter
<a name="API_TypeConverter"></a>

Use this processor to convert a value type associated with the specified key to the specified type. It's a casting processor that changes the types of the specified fields. Values can be converted into one of the following datatypes: `integer`, `double`, `string` and `boolean`. 

For more information about this processor including examples, see [ trimString](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-trimString) in the *CloudWatch Logs User Guide*.

## Contents
<a name="API_TypeConverter_Contents"></a>

 ** entries **   <a name="CWL-Type-TypeConverter-entries"></a>
An array of `TypeConverterEntry` objects, where each object contains the information about one field to change the type of.   
Type: Array of [TypeConverterEntry](API_TypeConverterEntry.md) objects  
Array Members: Minimum number of 1 item. Maximum number of 5 items.  
Required: Yes

## See Also
<a name="API_TypeConverter_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/logs-2014-03-28/TypeConverter) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/logs-2014-03-28/TypeConverter) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/logs-2014-03-28/TypeConverter) 