cast board id to int