added support for type specified by typeof operator