Converts a value to a PreparedValue with a specific expiration timestamp.
a PreparedValue with the specified TTL
the expiration timestamp in milliseconds since epoch
the type of the value