`as Int` probably won’t work (the IDE is probably ...
# getting-started
d
as Int
probably won’t work (the IDE is probably warning you “this cast can never succeed”?)
if(myRequest.readyState.toInt() == 4)
is what I was suggesting.