Remove pointless casting