fixes detroitledger/gnl_profile#26: cast types