Casting attribute values given as string

So far only specs are available. Wait for implementation, then merge ;-)
I get it. If it's over 5 LOC, it's not sufficiently Ruby-like ;-)