Of course they would prefer those applicants are of their fields... but if you can show how your background is related, that's ok too.
It's not difficult to get a RA post in university I guess, but you have to show them how much you want to work in research field.