Remove unneeded casting