Allow overrideing the type with a class.