Can I Use Brass With Plastic in Plumbing?

I’m in the middle of trying to fix the house’s sprinkler system and one of the plastic pop-up sprinklers appears to be using a 5/8" piece of black plastic pipe. Problem is, the only replacement heads I can find are either 3/4" or 1/2". So I’m trying to find a connector that will go from 5/8" male (so a 5/8" female) to either 3/4" or 1/2" male. I thought I had found one, but it was flared and wouldn’t fit into the bottom of the sprinkler head. Plus it was brass. So I wound up not getting anything since I couldn’t find a non-flanged plastic fitting. But, assuming I can find one, can I use a brass fitting with two pieces of plastic or will I screw everything up? Or should I just do my best to find a PVC connector with the right dimensions? For that matter, do they even make what I’m looking for? I am not looking forward to digging up more of the lawn.

Plastic and steel pipe are measured by inside diameter, so the female holes on your valve will be the outside diameter of the pipe it’s sized to fit. A half inch valve will not measure 1/2 in.
You shouldn’t mix dissimilar metals to prevent electrolysis, but mixing metal and threaded PVC is OK. The only consideration might be the weight of the valve if the pipe is supporting it.

I suspect that you are measuring the OD of a 1/2 connection. Get a couple of PVC threaded connectors at the hardware store and try them on the sprinkler head. I suspect you will find that the 1/2 connector works.

What size is the feeder line?

Well, turns out it was a 1/2". I gave up and just unscrewed the riser, which then allowed me to get the angle right for the sprinkler head. I then just screwed the riser back in. So it’s good to go. I couldn’t imagine that it was really like 5/8", but the 1/2" piece of threaded PVC I tried putting in the old one wouldn’t fit and neither would the 3/4", so I had to make some assumption.