# untested code my %hash = $user->hashy; # pump all the fields into a hash