convert to static cast