uses static cast for params

allows you to include header file in a c++11 project