opentxs: fix -Wuseless-cast

Good idea. It was not there when I edited this file but appeared after I rebased on top of your changes ;)