Error messages for null & wrong object types