ToUnixTime to return int instead of long