Cast site_id to int

This addresses #3104
While strict checking is definitely the way to go, in this case a casting will allow a more flexibile implementation, with no drawbacks