Aaronontheweb on dev
Fix #4083 - Endpoint receive bu… (compare)
FieldInfo.SetValue(object, object), but that requires an object as a first param. So we generated code responsible for casting it back to object (but only for readonly fields). So struct created using activator → casted to its type → casted back to object, was causing an error.