add helper for type conversion