do not use instanceof in as