Fixed warning (unnecessary cast)
Fixed formatting slightly