Determine type into func