Data Type Conversions

Data type conversions happen automatically between compatible data types in Workflow.

When a specific data type is selected as the source and is bound to a different data type, if available, Workflow automatically converts the source data type into the destination data type.
Source Data TypeConverts to...
Boolean Boolean, String, or Object
String Boolean, String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, GUID, DateTime, TimeSpan, or Object
Byte String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, or Object
Byte[] Byte[] or Object
Byte[] String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, or Object
Int16 String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, or Object
Int32 String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, or Object
Int64 String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, or Object
UInt16 String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, or Object
UInt32 String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, or Object
Single String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, or Object
Double String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, or Object
GUID String, GUID, or Object
DateTime String, DateTime, or Object
TimeSpan String, TimeSpan, or Object
DataTable DataTable or Object
Object Boolean, String, Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, Single, Double, GUID, DateTime, TimeSpan, DataTable, or Object

Example

You can use a write activity in Workflow to write an int32 parameter to a string parameter. The int is converted to a string when the write occurs; for example, a 12 becomes “12”.