Use As<Date>() for the cast
Remove using namespace v8