v0.2.2: corrected casting errors in javac compiler