Convert the given pin to the new pin type. If the new type is wildcard then break all connections and reset the node. Invalidates tooltips upon completion. This function is to be used by the context menu and includes a transaction.