Fix an issue around type casting on pod version