casting bot id back to int