removed useless type cast.