Changed casting rule: types need to have a heritage link, whatsoever