API Platform version(s) affected: 4.1.0
Description
If you define casts via the Laravel method it isn't caught up by API Platform. Only $casts works.
How to reproduce
Try to create a model and define casts via the casts() method, not the $casts property
Possible Solution
Might need to call the initializeHasAttributes method