Removed unneeded casts