use instanceof :)