Added type-safe pointer passing class