Add type coerciion from String to AttributeSensor