Remove unneeded long cast