goes into the assign_attribute, which wraps around through cast, and handles this kind of stuff... Not sure it's handled right for current setup, as cast doesn't know if it's coming from the DB or from the main code, but #317 should clear that up.