It would be useful to be able to use expressions such as Integer.parse(string) (or string.toInt(), or (Integer)string; as well as from number to string) inside JDOQL queries. It is possible via plugin, but could be done better as core functionality with SQL and in-memory support.
Seems like String/NumericExpression would be relatively easy to extend for SQL via cast method for example, but I haven't looked at code in great detail, and not at all for in-memory processing when using non-SQL stores.
What do you think?
I might be able to make a patch if there's consensus on the approach (and time :().