TODONE: removed cast requirement.