static cast as id to avoid error