lua中获取控件类型疑问

type(widget) 得到的都是:userdata
我想要的是:ccui.Button、ccui.ImageView这样的类型
lua中是怎么实现的

tolua.type(widget)

非常感谢,哈哈哈