cast to giofunc