The first one checks for the specific type, the second includes subclasses