fixing minor cast warning on VC 2012