This Serializer[Any] does not look type-safe. Can't we make this more precise?