Adding a cast check after receiving post formats.