Fixed agraphattr_init emscripten invalid cast warning