Added util for static type check