Return subtype from inherit