Watch out for type conversions and formatting

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>