[TASK] Support for basic type conversions in state

Adds basic type conversion support (currently only "to string")
for the resource data (previously it only worked for embedded
resources)