add cast on LoopTripCount

Signed-off-by: xiehuc <xiehuc@gmail.com>