public static T GetValue <T>(object inObj, string fieldName) where T : struct { return((T)((object)NgAssembly.GetField(inObj, fieldName))); }