This will not give any compile time error as you are explicitly type casting it. So, the compiler will assume that whatever you are doing in explicit type casting is know to & you are responsible for that.so it will over look the error. But in run time it will give error.
Just the other day, I was thinking ... about this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book