Hmm..compiled ok with my VC++.NET.....still yeah..cast it if it complains
Personally I never use the old casts...the C++ casts force you to think about what you are doing
static_cast<> is good for minor casts to other types like say an int to a float.
reinterpret_cast<> is for casts which might appear dangerous unless you know what you are doing, like a cast of 1 function pointer to another...in my above code I knew the signatures for each function call were the same so I knew I was alright as long as I worked on 32 bit windows - reinterpret_cast<> is often unportable
const_cast<> is for removing a const qualifier....use only if you are totally sure what you are doing
dynamic_cast<> is for polymorphic downcasting IE a base ptr to a derived ptr.
Whereas the old C casts "()" can do anything like remove const where you dont want etc......