convert entity int's to long's