cast to `string`. Also, you should check if `class_exists`