Getting rid of lint warning.

Just by adding type, the lint warning of use of unsafe
or unchecked operation is gone.