fixed typo in original source code.

- 2 static_cast which should be static_assert's