ensure uid of message is integer