Changing Long and bit data types to int