Removed unnecessary casts