Remove explicit casts to and from 64bit types