Fixed warnings about possible loss of data in conversion.