Description
Try it out:
println "0" as int
println "0".asType(int.class)
I get this output:
0
48
This happens for all the primitives: byte, short, int, long, float, double
Using the non-primitive types yields the correct result, i.e.:
println "0" as Integer
println "0".asType(Integer.class)
gives:
0
0