Come da topic, che fa sta cosa?
int n = *((int*)arg)

grazie