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:

string name = strName;

Is the same as:

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.

Last updated