Fix automation engine to honor the data type.

@lfu 
Should this be conversion