Remove unneeded type cast