Remove use of NotNull trait

Replace `NotNull` on parameter type with `NotNullGuard` mecanism on `ToStatement`.