libcopybit: fix c++11 narowing

Summary:
The best fix for these narrowing
violations is to use static casting

Test Plan:
verified, all recent qcom patches will be
applied to other variants shortly

Reviewers: randall.rushing, synergy

Reviewed By: synergy

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