Game entities are of a handle type which is a 4 byte value. You could use an unsigned integer in C# to represent that. Note that you do not need to do that when using built-in RPH functions to create peds, vehicles, props etc. but only when manually invoking natives. To convert a handle to its RPH representation, you can use World.GetEntityByHandle.