This is a DWV specialty fitting made from PVC. Called a cleanout adapter, this fitting has spigot x female pipe thread ends.