You can do this:

    Hash[ preferences.map {|k,v| [k.to_sym, !!v]} ]

using the double-negation trick to force a boolean value.