Proper condition for conversion with leading zeros