Pseudoscalar conversion and X-rays from stars