Casting attribute values given as string

So far only specs are available. Wait for implementation, then merge ;-)
Also, `if` statements in Ruby return a value ... so you can do:
```ruby
value = if value.casecmp("true") == 0
          true
        elsif value.casecmp("false") == 0
          false
        end
```