SZ : fixed ptr cast error in MeshViewer