Is it permissible for me to work on cadavers and spend time at the morgue as part of my research, considering that I can choose to change my topic or area?
Working in any scientific field is permissible as far as it helps people in general. Working in any field needs Muslim to avoid unlawful acts. Working on cadavers needs you to respect all the human beings and never cut any part from a dead body of a Muslim.
'Wassalam.