Fixed inconsistent parameter type.

Fixed inconsistent parameter type for setMaxReceivePDULength() method.
Added explicit type casts to avoid warnings.

Added explicit type casts to avoid warnings reported by gcc 4.7.2 (Linux)
with additional flags or MSVC++ with higher warning level (C4244).
Fixed inconsistent parameter type.

Fixed inconsistent parameter type for setMaxReceivePDULength() method.