static_cast<newType>

static_cast<newtype> A :

将A转换为newtype 类型。

相当于C语言中的(int):

比如:   

float a = 3.1415

int  b = static_cast<int> (a)

相当于 C语言中的 

float a = 3.14

int b = (int)a

原文地址:https://www.cnblogs.com/zijidefengge/p/12430717.html