Do type check/cast only in setters, not getters