fix missing type in static_cast.
fix #132