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