title: Typecast an uint32 number to a struct pointer?
body: <p>While working with C, I have encountered some code which typecast an uint32 number to struct pointer, I can not evaluate if this is right or wrong, could you guys help me about this?</p>
  
  <pre><code>typedef struct
  {
      uint32 a;
      //some other element;
  } StructA;
  
  int main()
  {
      StructA *a;
      uint32 b;
      b = //assign a value for b;
      a = (StructA*)b;
  }
  </code></pre>
  
  <p>Is this type of casting b to pointer of StructA correct? And please explain to me why this is right or wrong, thank you so much for your help</p>