fix #10: more type casting for bfs dobfs