remove unneeded cast