**Inheritance:**
java.lang.Object, com.aspose.pdf.dataeditor.CosPdfPrimitive

**All Implemented Interfaces:**
ICosPdfPrimitive

```
public abstract class CosPdfPrimitive extends Object implements ICosPdfPrimitive
```

This class represents base public type {@link CosPdfPrimitive}.

## Constructors

| Constructor | Description |
| --- | --- |
| [CosPdfPrimitive](#CosPdfPrimitive--) |  |

## Methods

| Method | Description |
| --- | --- |
| [toCosPdfBoolean](#toCosPdfBoolean--) | Tries cast this instance to {@link CosPdfBoolean}. |
| [toCosPdfDictionary](#toCosPdfDictionary--) | Tries cast this instance to {@link CosPdfDictionary}. |
| [toCosPdfName](#toCosPdfName--) | Tries cast this instance to {@link CosPdfName}. |
| [toCosPdfNumber](#toCosPdfNumber--) | Tries cast this instance to {@link CosPdfNumber}. |
| [toCosPdfString](#toCosPdfString--) | Tries cast this instance to {@link CosPdfString}. |

### CosPdfPrimitive {#CosPdfPrimitive--}
```
public CosPdfPrimitive()
```



### toCosPdfBoolean {#toCosPdfBoolean--}
```
public CosPdfBoolean toCosPdfBoolean()
```

Tries cast this instance to {@link CosPdfBoolean}.

**Returns:**
null if instance is not {@link CosPdfBoolean} else {@link CosPdfBoolean}.

### toCosPdfDictionary {#toCosPdfDictionary--}
```
public CosPdfDictionary toCosPdfDictionary()
```

Tries cast this instance to {@link CosPdfDictionary}.

**Returns:**
null if instance is not {@link CosPdfDictionary} else {@link CosPdfDictionary}.

### toCosPdfName {#toCosPdfName--}
```
public CosPdfName toCosPdfName()
```

Tries cast this instance to {@link CosPdfName}.

**Returns:**
null if instance is not {@link CosPdfName} else {@link CosPdfName}.

### toCosPdfNumber {#toCosPdfNumber--}
```
public CosPdfNumber toCosPdfNumber()
```

Tries cast this instance to {@link CosPdfNumber}.

**Returns:**
null if instance is not {@link CosPdfNumber} else {@link CosPdfNumber}.

### toCosPdfString {#toCosPdfString--}
```
public CosPdfString toCosPdfString()
```

Tries cast this instance to {@link CosPdfString}.

**Returns:**
null if instance is not {@link CosPdfString} else {@link CosPdfString}.
