BaseObject::cast for database fields
squash TODOs