title: How to convert a complex<float> variable into a float in C++?
body: <p>I have a variable in my code that is a complex float.  I know that it only has a real part and I just want to type cast it to a float variable.  </p>
  
  <p>This should be super simple I feel but you can't just type cast and can't find the answer anywhere after over an hour of searching.  Any help would be greatly appreciated!</p>