remove typecasts to Int64