---
title: objCType
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsvalue/objctype
---

# objCType

A C string containing the Objective-C type of the data contained in the value object.

## Declaration

```swift
var objCType: UnsafePointer<CChar> { get }
```

## Discussion

Discussion This property provides the same string produced by the @encode() compiler directive.

## See Also

### Working with Raw Values

- [init(bytes:objCType:)](foundation/nsvalue/init(bytes:objctype:).md)
- [init(_:withObjCType:)](foundation/nsvalue/init(_:withobjctype:).md)
- [getValue(_:)](foundation/nsvalue/getvalue(_:).md)
