Changed type to fix clang narrowing error