Fixes the missed narrowing conversion warning for temperature