Typecast or typecasting may mean:
In computer science, type conversion, typecasting, and coercion are different ways of, implicitly or explicitly, changing an entity of one data type into another. This is done to take advantage of certain features of type hierarchies or type representations. One example would be small integers, which can be stored in a compact format and converted to a larger representation when used in arithmetic computations. In object-oriented programming, type conversion allows programs to treat objects of one type as one of their ancestor types to simplify interacting with them.
Each programming language has its own rules on how types can be converted. In general, both objects and fundamental data types can be converted. In most languages, the word coercion is used to denote an implicit conversion, either during compilation or during run time. A typical example would be an expression mixing integer and floating point numbers (like 5 + 0.1), where the integers are normally converted into the latter. Explicit type conversions can either be performed via built-in routines (or a special syntax) or via separately defined conversion routines such as an overloaded object constructor.
In television, film, and theatre, typecasting is the process by which a particular actor becomes strongly identified with a specific character; one or more particular roles; or, characters having the same traits or coming from the same social or ethnic groups. There have been instances in which an actor has been so strongly identified with a role as to make it difficult for him or her to find work playing other characters.
Alternatively, a director may choose to cast an actor "against type" (i.e., in a role that would be unusual for that actor, to create a dramatic or comedic effect).
Typecasting also occurs in other performing arts. An opera singer who has a great deal of success in one role, such as Denyce Graves as Carmen, may become typecast in that role.
Actors are selected for their roles either by a casting director, typically found in small productions, or, in larger productions such as motion pictures, through casting agencies. Extras and stand-ins are often drawn from the company Central Casting, a company so influential since its 1925 start, that some people refer to all cast as coming from "central casting". The concept of "central" casting was also widespread during the studio-dominated era (from the 1920s through the 1940s) when each studio had a larger number of actors on contract who were assigned to whatever films were being made at the time by that studio. Such centralized casting was made more efficient by placing an actor in subsequent similar character roles after his or her first success, especially if an actor was particularly well received in that role by the audience or by critics.