Fixed unchecked conversion warning