Fix some warning from -Xlint:unchecked