Cast PID to Integer