ClassCastException in LongType when a property is a interface or base class
For example if a property is a Serializable or Number, the object will not created to the right object type. This is an issue with reflection and not the framework. however when it gets to the LongType class, a ClassCastException occurs.
This will probably be the same issue with other Types and the fix might want to be applied to other ones.