Type conversion errors removed and ambiguity of sqrt removed

Removed errors found in visual studio 2012
ERROR: error C2440: '=' : cannot convert from 'void *' to 'CvPoint *'	
Some warnings still exist like
warning C4244: '+=' : conversion from 'float' to 'int', possible loss of data	
have a look to that