Support for setting the type