### Environment - Pythonnet version: 2.3.0 - Python version: Python 3.6.1 64-bit - Operating System: Windows 10 1703 64-bit ### Details pythonnet fails to get the right type from the struct. C# code: ```csharp namespace PyNetFails { public struct A { public int X; public int Y; public uint V; } } ``` Then compile it as class library named `PyNetFails` and run the following Python code: ```python import clr clr.AddReference('PyNetFails.dll') from PyNetFails import A a = A() print(type(a.V)) ``` It produces: `<class 'int'>`, although the type should be `System.UInt32`. Then try to run afterwards the following code: ```python from System import UInt32 v = UInt32(42) print(v >= a.V) ``` - Traceback: ```python Traceback (most recent call last): File "<pyshell#7>", line 1, in <module> print(v >= a.V) TypeError: Cannot get managed object ```