Fix coding style and numeric casts