Replace int converstion code