Cast return codes to integer.