added a utility to check for actuals size and type