Convert sequence number to integer