Adding type check to REST methods