add sample code for unsigned conversion