Question: can x be pronounced as z?
Answer: In English orthography, ⟨x⟩ is typically pronounced as the voiceless consonant cluster /ks/ when it follows the stressed vowel (e.g. ox), and the voiced consonant /ɡz/ when it precedes the stressed vowel (e.g. exam). It is also pronounced /ɡz/ when it precedes a silent ⟨h⟩ and a stressed vowel (e.g. exhaust).