Type checking instead of referencing