issue #2433:Modify get typeid function