rm unneeded int casts