Core/Misc: Fix some -Wconversion warnings