Changed getType() to getTypedRef() I think it makes more sense