convert current_expires to a string, use it as the argument for the call to the function typecast_timestamp, substitute the result for current_expires.
current_expires = typecast_timestamp ( str ( current_expires ) )