`toMS` accepts a number, Date instance, or object literal, so you don't need to do any type checking here.