On the Type class there are two very useful methods which allows you to determine the inheritance relationship of two arbitrary types at runtime — IsSubclassOf method and IsAssignableFrom method.