Remove unneccessary cast