In theory, yes. But with the engine converting the code to JVM classes, which is not so lenient with data types, we'll probably see more of this. I think some of the API functions used to be smarter and would try to covert types where possible, so that a number would be accepted even if a string was expected. Not sure why they have gotten away from that.