/*************************************/ private static void SetPersistentData <T>(GH_PersistentParam <T> param, GH_Structure <IGH_Goo> data) where T : class, IGH_Goo { param.SetPersistentData(data.Cast <T>()); }