Remove redundant casts

Change-Id: I858dca60061c3e7a9f60085026c8e45d9b0b35ed
Reviewed-on: http://gerrit.dmdirc.com/3883
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>