Converting into the required return type of uint instead of int