Make sure code is an int