base: fix c++11 narrowing

Summary:
The best fix for this narrowing
violation is to use static casting

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D652