removes unnecessary cast

removes unnecessary cast