Removed some redundant casting.