Remove unneeded cast