It might be the stupidest question on Xtend. But here it goes
I'm trying to convert the following to Xtend
if (obj instanceof Integer) {
message.reply((Integer)obj);
}
I know that I would need to use the typeof
function.
Can I use typeof
as a direct replacement to instanceof
?