Removed unneeded casts.