Used to validate that an argument is a class and to keep the support code and code generators in sync.