How to convert DateTime to integer

 

When i write this code:

       int expire=0;
       if(Expiration>0)expire=TimeCurrent()+(Expiration*60)-5;

it show warning message : possible loss of data due to type conversion

How can i solve this problem.


 
capilta:

When i write this code:

it show warning message : possible loss of data due to type conversion

How can i solve this problem.


datetime expire=0;
if(Expiration>0)expire=TimeCurrent()+(Expiration*60)-5;
Reason: