Fixed compiler warnings related to implicit conversions.