Casting attribute values given as string

So far only specs are available. Wait for implementation, then merge ;-)
I have not lost my C skills altogether. Yay! :-)