- Add back int cast on entity pathfinding (#1298)