Implement check type in invoke node