Which Nullable implementation is this ? Spring4D?
If so, you may be also calling Spring unit TValue record helper methods instead of system.rtti pure tvalue methods.
This way, everything must be handled with care: Aurelius + System.RTTI + Spring4D.
Are you making some sort of generic all-purpose dynamic RTTI assignments? Wouldn't a couple of custom Assign methods in your entities class helpers solve your problem?
I'm using Data modeler to generate the entities pas file and it automatically includes "Aurelius.Types.Nullable" thats why i'm using the same on my code to set and get the values. looks like the code that load the entity from database is not using the same.
Or at least the code where you implement your AProperty.GetValue & AProperty.SetValue.
Up there you use Value.AsString . Aurelius Nullable relays on it's implicit and explicit typecast operators, and TValue does not access those operators. I suspect this typecast error comes from introducing something that is a String (Value.ASString), and then trying to invoke it through TValue as a Nullable.