removed redundant casts