-removed redundant casts