fix warning with -Wconversion in SquareObstacle class