issue #3956:Remove the usage of “tolua.cast”