Custom preview: "Data conversion failed from Goo to Shader"

I found the solution in Rhino 6 Grasshopper render preview materials