It is a galvanic isolator. It is also a DC-DC converter but this is just semantic. You need primarely a galvanic isolation.

Alain suggestion to use a voltage to frequency converter, is an interesting and cheap approch!

Cheers

Al.