tcp: use case instead of condp
tcp/accept: check the object is of the proper type