Change typeof to getType