Use object_setClass() to fix compiler warning.