opentxs: fix -Wuseless-cast
Merge pull request #316 from toxeus/fixUselessCast

opentxs: fix -Wuseless-cast
fix return types
use error codes instead of OT_FAIL