Fixed few warnings for float vs double casting.