Entity is not a supported data type:
https://docs.mendix.com/apidocs-mxsdk/apidocs/pluggable-widgets-property-types#4-dynamic-types
If you are trying to access information from an Entity passed into a widget, you probably want to use DataSource.