deprecated getCleanOutput method
use the new getOutput(Class<?> cast) instead to filter out null