# Automatic Casts

PPJ basic types support automatic casting to the equivalent native .NET type.

Since the implementation simply wraps the equivalent .NET type, casting operation is very simple and it's the same as returning the inner native member.

For example:

```csharp
string name = strName;
```

Is the same as:

```csharp
string name = (string)strName;
string name = strName.ToString();
string name = strName.Value;
```

Therefore when writing new code, or modifying ported code, you can transparently use PPJ types or native types.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.iceteagroup.com/general/framework/data-types/automatic-casts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
