Added coercion for Date objects