Remove a pointless and warning cast