Hi Rene,
Did that yesterday almost whole day up to a point where I almost threw my computer out of the window (which was closed btw)
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
Before you turn to throw the poor computer next time and GOD forbid the window happen to be opened, try to read the error message closely.
"ClassCastException" does signifies what masters already told you. Googling will also help, as B4A is Java based and errors are related to Java.
I do the googling and many times found the hint to the problem, though I do not know Java, I can understand the explanations I find.
Try it. It will save the poor computer which is trying to help you by showing the errors
Regards,
Anand