Removed redundant casts