revert
use objecttype object to detect primitive types