Feedback
Runtime cast rejects DateTime and Colour values boxed as Object
- Status
- Fixed
- Fixed in
- v26.6.8
- Source discussion
- https://forum.objo.dev/d/453-when-getting-datetime-from-introspection-then-it-will-cause-cast-error/7
- Last updated
- 2026-06-30
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Explicitly casting an Object that contains a DateTime or Colour value back to the same value type throws a misleading TypeMismatchException, for example Cannot cast 'DateTime' to 'DateTime'. The cast should succeed when the boxed runtime value already has the requested type.