Set a custom type.