Convert nprocess to integer