Added new accessor functions, small fix

 * Fixed compiler warning about an "unitialized" variable
 * Added "nbt_cast_<type>()" functions that will return a NULL
   pointer on type mismatch.
3 files changed