add static cast to wake.cpp
Merge pull request #1 from da2ce7/master

add static cast to wake.cpp