Context: Y has just told X that he/she is considering switching his/her job.

X: Do you work with kids?
Y: Only when it's required of me.