Safer writing?
Ensure ID is of the expected type