Convert status to integer