Get rid of some warnings emitted by clang's -Wsign-conversion

Hello,

This patch gets rid of a few warnings emitted by clang. For this I introduced a MathLib::toString method that replaces the MathLib::{long,double}ToString. Thanks to consider pulling.

Best regards,
  Simon