inherit cast