Is it because we are using object or because of Null?
If it is because we changed to object now we can change to Nullable datatetime I believe as we are using a IF activity
If it is because of Null try to Give Nothing
can you show the error
cheers