Removed unneeded casting.